package wsepForum.test.acceptance.story;

/**
 * A story that checks the login to our system
 * @author Oren Ben-Haim
 *
 */
public class LoginStory extends StoryBase {

	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	public LoginStory() {
		super("Login story");
	}
	
	/**
	 * A test that checks some login attempts
	 */
	public void testStoryLoginAttempts() {
		assertTrue("was expected get a positive answer for this login attempt", bridge.actionTryToLoginWith("user1", "user1"));
		assertTrue("was expected get a positive answer for this login attempt", bridge.actionTryToLoginWith("user1", "user1"));
		assertFalse("was expected get a negative answer for this login attempt", bridge.actionTryToLoginWith("User1", "usEr1"));
		assertFalse("was expected get a negative answer for this login attempt", bridge.actionTryToLoginWith("", "user1"));
		assertFalse("was expected get a negative answer for this login attempt", bridge.actionTryToLoginWith("user1", ""));
	}

}
